package com.woniuxy.daos;

import com.woniuxy.entitys.TbMalfunction;
import com.woniuxy.entitys.TbMalfunctionExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.context.annotation.Primary;

public interface TbMalfunctionDao {
    long countByExample(TbMalfunctionExample example);

    int deleteByExample(TbMalfunctionExample example);

    int deleteByPrimaryKey(Integer maid);

    int insert(TbMalfunction record);

    int insertSelective(TbMalfunction record);

    List<TbMalfunction> selectByExample(TbMalfunctionExample example);

    TbMalfunction selectByPrimaryKey(Integer maid);

    int updateByExampleSelective(@Param("record") TbMalfunction record, @Param("example") TbMalfunctionExample example);

    int updateByExample(@Param("record") TbMalfunction record, @Param("example") TbMalfunctionExample example);

    int updateByPrimaryKeySelective(TbMalfunction record);

    int updateByPrimaryKey(TbMalfunction record);

    List<TbMalfunction> getAllFault(@Param("faultStatus") Integer faultStatus);

    List<TbMalfunction> getAllFaultByHid(@Param("uid") Integer uid, @Param("faultStatus") Integer faultStatus);

    TbMalfunction getAllFaultById(Integer maid);

    List<TbMalfunction> getAllFaultByFuzz(String searchValue);

    List<TbMalfunction> getAllFaultByFuzzAndHid(Integer uid, String searchValue);

    List<TbMalfunction> selFaultList();
    List<TbMalfunction> getAllFaultByCascade(Integer hid, Integer did);

    int updateStatus(@Param("status") Integer status,@Param("maid") Integer maid);
}